<?php $view->extend('admin/forum/template', 'content', array('title' => 'Forum editor')); ?>


<?php echo $forumForm;?>

<h2>Donate package info</h2>
<p>
<label>Title of forum</label>
<?php echo $forumForm->input('text','title', isset($forum) ? $forum->getTitle() : null)?>
</p>


<p>
<label class="tooltip" title="Url path to forum, Example: news, gamemasters, help_requests, etc. You may leave this blank, then url friendly url of title will be generated.">Url path (Leave blank to generate from Title)</label>
<?php echo $forumForm->input('text','url', isset($forum) ? $forum->getUrl() : null)?>
</p>


<p>
<label>Forum Description</label>
<?php echo $forumForm->textarea('description',isset($forum) ? $forum->getDescription() : null, array('cols' => 60, 'rows' => 30))?>
</p>

<p>
<label class="tooltip" title="Access Level required to view the forum posts and threads aswell as the forum itself.">Access Level (read):</label>
<?php echo $forumForm->input('text','accessLevel',isset($forum) ? $forum->getAccess() : 0)?>
</p>

<p>
<label class="tooltip" title="Access level to create threads.">Access Level to create threads:</label>
<?php echo $forumForm->input('text','accessLevelThread',isset($forum) ? $forum->getThreadAccess() : 0)?>
</p>
<p>
<label class="tooltip" title="Access level to reply to threads">Access Level to reply to threads:</label>
<?php echo $forumForm->input('text','accessLevelReply',isset($forum) ? $forum->getReplyAccess() : 0)?>
</p>

<p>
<?php echo $forumForm->input('submit','submit','Save forum')?>
</p>

<?php echo $forumForm->close();?>